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

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-05 01:14:06,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:14:06,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:06,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:14:06,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:06,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:14:06,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:14:06,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:06,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:06,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:14:06,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:14:06,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:14:06,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:14:06,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:14:06,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:06,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:06,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:06,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:06,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:14:06,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:06,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:14:06,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:14:06,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:14:06,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:14:06,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:14:06,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:14:06,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:14:06,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:14:06,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:14:06,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:14:06,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:14:06,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:06,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:14:06,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:06,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:14:06,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:14:06,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:14:06,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:14:06,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:14:06,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:14:06,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:14:06,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:14:06,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:14:06,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:14:06,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:06,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:06,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:14:06,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:14:06,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:14:06,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:06,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:06,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:14:06,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:06,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:06,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:14:06,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:06,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:06,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:06,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:14:06,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:06,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:14:06,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:14:06,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:14:06,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:14:06,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:14:06,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:14:06,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:06,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:06,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:06,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:14:06,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:06,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:06,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:14:06,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:06,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:06,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:14:06,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:06,251 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

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

2022-01-05 01:14:07,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:07,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:14:07,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:14:07,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:14:07,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:14:07,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:14:07,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:07,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:07,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:14:07,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:07,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:14:07,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:14:07,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:14:07,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:14:07,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:14:07,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:14:07,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:14:07,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:14:07,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:07,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:14:07,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:14:07,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:14:07,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:14:07,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:14:07,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:14:07,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:14:07,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:07,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:14:07,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:14:07,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:14:07,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:14:07,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:07,090 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:07,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:14:07,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:07,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:07,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:14:07,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:14:07,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:14:07,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:07,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:07,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:14:07,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:07,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:14:07,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:07,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:07,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:14:07,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:14:07,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:14:07,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:14:07,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:14:07,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:07,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:14:07,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:14:07,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:14:07,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:14:07,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:14:07,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:14:07,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:14:07,161 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-05 01:14:07,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:14:07,995 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:07,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:14:08,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:14:08,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:14:08,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:14:08,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:08,010 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:08,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:14:08,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:14:08,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:08,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:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:08,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:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:08,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:14:08,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:08,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:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:08,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:14:08,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:08,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:14:08,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:14:08,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:14:08,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:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:14:08,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:08,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:14:08,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:14:08,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:08,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:08,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:14:08,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:14:08,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:14:08,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:14:08,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:08,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:08,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:14:08,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:08,188 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

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

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-05 01:14:10,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:14:10,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:14:10,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:14:10,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:14:10,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:14:10,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:14:10,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:14:10,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:14:10,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:10,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:14:10,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:14:10,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:14:10,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:14:10,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:14:10,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:14:10,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:14:10,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:14:10,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:14:10,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:10,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:14:10,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:10,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:14:10,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:14:10,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:14:11,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:11,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:14:11,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:11,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:11,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:14:11,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:11,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:14:11,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:14:11,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:14:11,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:14:11,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:11,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:11,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:11,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:14:11,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:14:11,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:14:11,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:14:11,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:14:11,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:11,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:14:11,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:11,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:14:11,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:14:11,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:14:11,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:11,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:14:11,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:14:11,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:14:11,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:14:11,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:14:11,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:11,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:14:11,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:11,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:11,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:11,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:14:11,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:11,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:14:11,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:14:11,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:14:11,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:14:11,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:14:11,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:11,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:11,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:11,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:11,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:14:11,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:14:11,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:11,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:14:11,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:11,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:11,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:14:11,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:14:11,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:11,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:11,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:11,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:11,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:11,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:14:11,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:11,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:11,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:11,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:14:11,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:14:11,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:14:11,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:14:11,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:14:11,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:14:11,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:11,188 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

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

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

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

During handling of the above exception, another exception occurred:

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


2022-01-05 01:14:11,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:11,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:11,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:11,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:11,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:14:11,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:14:11,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:11,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:11,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:11,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:14:11,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:14:11,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:14:11,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:11,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:11,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:11,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:11,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:14:11,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:14:11,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:14:11,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:14:11,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:11,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:14:11,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:14:11,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:14:11,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:14:11,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:11,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:11,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:14:11,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:14:11,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:14:11,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:11,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:11,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:11,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:11,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:14:11,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:14:11,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:14:11,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:11,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:14:11,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:11,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:14:11,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:14:11,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:14:11,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:11,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:11,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:11,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:14:11,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:14:11,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:14:11,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:11,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:11,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:11,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:11,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:11,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:14:11,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:11,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:11,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:14:11,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:14:11,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:14:11,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:14:11,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:14:11,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:14:11,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:11,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:14:11,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:11,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:11,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:11,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:11,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:14:11,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:14:11,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:11,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:14:11,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:11,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:14:11,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:14:11,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:14:11,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:14:11,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:14:11,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:14:11,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:14:11,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:14:11,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:14:11,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:14:11,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:14:11,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:14:11,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:14:11,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:14:11,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:11,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:11,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:11,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:11,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:11,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:11,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:11,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:12,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:12,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:14:12,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:14:12,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:14:12,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:12,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:12,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:12,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:14:12,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:14:12,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:12,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:12,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:14:12,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:12,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:14:12,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:14:12,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:12,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:14:12,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:14:12,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:14:12,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:14:12,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:12,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:14:12,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:12,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:12,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:12,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:12,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:14:12,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:12,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:12,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:14:12,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:14:12,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:14:12,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:14:12,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:12,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:14:12,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:12,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:14:12,090 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-05 01:14:13,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:14:13,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:13,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:14:13,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:13,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:13,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:14:13,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:14:13,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:14:13,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:14:13,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:13,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:14:13,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:13,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:13,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:13,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:14:13,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:13,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:13,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:14:13,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:14:13,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:14:13,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:14:13,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:14:13,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:14:13,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:13,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:14:13,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:13,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:14:13,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:13,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:13,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:14:13,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:13,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:13,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:13,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:14:13,708 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

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

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


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

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

During handling of the above exception, another exception occurred:

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


2022-01-05 01:14:13,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:14:13,995 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:13,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:14:13,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:14:14,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:14:14,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:14:14,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:14,010 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:14,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:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14,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:14,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:14:14,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:14:14,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:14,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:14:14,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:14,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:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14,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:14,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:14,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:14,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:14:14,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:14:14,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:14:14,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:14,090 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14:14,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:14,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:14:14,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:14:14,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:14,161 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

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

During handling of the above exception, another exception occurred:

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


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

2022-01-05 01:14:15,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:14:15,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:14:15,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:14:15,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:14:15,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:14:15,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:14:15,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:14:15,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:14:15,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:14:15,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:14:15,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:14:15,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:14:15,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:14:15,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:15,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:14:15,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:14:15,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:14:15,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:14:15,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:14:15,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:14:15,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:15,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:14:15,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:14:15,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:14:16,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:14:16,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:14:16,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:14:16,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:14:16,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:14:16,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:14:16,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:14:16,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:14:16,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:14:16,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:14:16,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:14:16,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:16,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:16,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:16,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:14:16,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:16,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:16,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:14:16,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:16,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:14:16,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:14:16,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:16,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:16,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:14:16,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:16,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:16,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:16,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:14:16,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:16,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:16,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:14:16,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:16,090 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

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

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-05 01:14:17,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:17,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:17,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:14:17,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:14:17,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:14:17,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:14:17,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:17,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:17,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:14:17,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:14:17,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:14:17,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:14:17,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:14:17,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:14:17,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:14:17,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:14:17,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:14:17,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:17,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:17,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:17,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:14:17,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:14:17,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:14:17,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:14:17,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:17,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:14:17,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:17,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:14:17,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:14:17,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:14:17,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:14:17,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:14:17,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:14:17,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:14:17,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:14:17,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:14:17,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:14:17,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:14:17,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:14:17,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:17,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:14:17,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:14:17,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:17,161 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

2022-01-05 01:14:17,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:14:17,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:14:17,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:14:17,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:14:17,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:14:17,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:14:17,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:14:17,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:17,188 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

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

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-05 01:14:20,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:14:20,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:14:20,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:14:20,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:20,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:20,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:20,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:14:20,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:20,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:14:20,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:20,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:14:20,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:20,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:20,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:14:20,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:20,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:14:20,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:20,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:20,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:20,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:20,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:14:20,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:14:20,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:14:20,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:20,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:14:20,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:20,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:20,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:20,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:20,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:20,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:20,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:20,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:20,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:14:20,708 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

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

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

2022-01-05 01:14:22,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:14:22,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:14:22,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:14:22,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:14:22,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:14:22,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:14:22,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:14:22,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:14:22,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:14:22,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:14:22,737 ERROR ilens-edge_engine Error: 'NoneType' object has no attribute 'shape'
Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'
2022-01-05 01:14:22,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:16:02,022  INFO ilens-edge_engine building publishers 
2022-01-05 01:16:02,163  INFO ilens-edge_engine Selected input stream as Direct cv input
2022-01-05 01:16:03,511  INFO ilens-edge_engine Setting up frame processor !!
2022-01-05 01:16:36,638 ERROR ilens-edge_engine Empty Frame !!!! 
2022-01-05 01:16:36,638 ERROR ilens-edge_engine Error opening Capture !!!! 
2022-01-05 01:16: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:16: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:16: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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16: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:16:36,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:16:36,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:16:36,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:16:36,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:16: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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16: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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16: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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16: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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16: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:16:36,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:16:36,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:16:36,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:16:36,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:16: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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16: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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16: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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16: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:16: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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16: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:16:36,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:16:36,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:16:36,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:16:36,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:16: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:16: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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16: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:16:36,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:16:36,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:16:36,911 ERROR ilens-edge_engine Traceback (most recent call last):
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 384, in _predict
    dets, frame, _dets = self.inference(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\scripts\cement_counter.py", line 370, in inference
    dets = self.yp.predict(frame)
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\infer.py", line 47, in predict
    img = letterbox(image, new_shape=self.img_size)[0]
  File "C:\Users\ASUS\PycharmProjects\UI\bag-printing-detection-develop\yolov5processor\utils\augmentations.py", line 94, in letterbox
    shape = im.shape[:2]  # current shape [height, width]
AttributeError: 'NoneType' object has no attribute 'shape'

During handling of the above exception, another exception occurred:

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


2022-01-05 01:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16: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:16: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:16: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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16: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:16:36,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:16:36,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:16:36,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:16:36,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:16:36,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:16: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:16: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:16:36,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:16:36,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16: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:16:37,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:16: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:16:37,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:16:37,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:16: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:16: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:16:37,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:16: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:16:37,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:16: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:16:37,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:16: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:16: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:16: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:16:37,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:16:37,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:16: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:16:37,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:16: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:16: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:16:37,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:16:37,090 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-05 01:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16: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:16: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:16: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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16:37,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:16: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:16:37,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:16:37,995 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-05 01:16:38,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:16:38,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:16:38,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:16:38,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:16:38,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:16:38,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:16:38,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:16:38,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:16:38,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:16:38,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:16:38,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:16:38,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:16:38,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:16:38,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:16:38,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:16:38,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:16:38,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:16:38,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:16:38,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:16:38,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:16: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:16:38,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:16:38,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:16:38,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:16: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:16:38,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:16: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:16:38,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:16:38,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:16:38,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:16:38,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:16: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:16: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:16:38,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:16:39,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:16:39,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:16: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:16:39,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:16:39,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:16:39,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:16:39,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:16:39,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:16:39,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:16: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:16:39,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:16:39,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:16:39,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:16:39,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:16:39,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:16: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:16:39,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:16:39,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:16:39,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:16:39,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:16:39,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:16: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:16: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:16:39,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:16:39,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:16:39,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:16:39,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:16:39,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:16:39,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:16:39,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:16:39,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:16:39,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:16:39,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:16:39,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:16:39,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:16:39,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:16:39,090 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-05 01:16: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:16:40,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:16: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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16: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:16:40,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:16:40,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:16:40,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:16: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:16:40,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:16: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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16: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:16: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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,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:16: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:16:40,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:16:40,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:16:40,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:16:40,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:16:40,251 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

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

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

During handling of the above exception, another exception occurred:

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


2022-01-05 01:16:42,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:16:42,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:16: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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,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:16:42,399 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


2022-01-05 01:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16: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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16: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:16: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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,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:16:43,708 ERROR ilens-edge_engine OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4045: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

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

During handling of the above exception, another exception occurred:

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


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

During handling of the above exception, another exception occurred:

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


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

